home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
cc_base
/
pak00_16bit_f.pk3
/
loader.gl.p
< prev
next >
Wrap
Text File
|
2002-12-23
|
6KB
|
184 lines
{
ChildID = {
GuiLoader("background") {
/* AnimationID = "image/loader.pcx"; */
X = 0;
Y = 0;
state = 1;
ScriptID = Script {
@draw {
DrawRect(0,0,CVarGetInt("SCREEN_MAX_X"), CVarGetInt("SCREEN_MAX_Y"), 0, 0, 0);
}
@animate {
int state;
int CurrentFrame;
resid LoadAnim;
LoadAnim = GuiSiblingByName("load_anim");
ResPropAlias(SELF,"state","state");
ResPropAlias(LoadAnim,"CurrentFrame","CurrentFrame");
if (state == 1) {
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(137/*"loading dispatch"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 2) {
ResByName("dispatch.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(138/*"loading map"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 3) {
ResByName("map.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(139/*"loading country map"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 4) {
ResByName("country_map.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(140/*"loading expense report"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 5) {
ResByName("expense.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(141/*"loading photo album"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 6) {
ResByName("photo_album.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(142/*"loading travel log"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 7) {
ResByName("travel_log.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(143/*"loading truck dash"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 8) {
ResByName("help.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(144/*"loading tab: hunger"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 9) {
ResByName("eat.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(145/*"loading tab: fuel"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 10) {
ResByName("fuel.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(146/*"loading tab: load"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 11) {
ResByName("load.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(147/*"loading tab: maintenance"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 12) {
ResByName("maintenance.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(148/*"loading tab: postcards"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 13) {
ResByName("postcard.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(149/*"loading tab: system"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 14) {
ResByName("system.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(150/*"loading tab: timezone"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 15) {
ResByName("timezone.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(151/*"loading tab: sleep"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 16) {
ResByName("sleep.tab");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(152/*"loading laptop"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 17) {
ResByName("dash.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(153/*"loading help sections"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 18) {
ResByName("laptop.gl");
ResPropSetStr(GuiSiblingByName("load_status"),"InputText",MangleSIDToStr(154/*"loading complete!"*/));
state += 1;
CurrentFrame += 1;
stop;
}
if (state == 19) {
ResPropSetInt(GuiParent(SELF),"Hidden",TRUE);
stop;
}
}
};
},
GuiAnimation("load_anim") {
AnimationID = "gui/main_menu/loader/loader.anm";
X = 150;
Y = 150;
State = STOPPED;
},
GuiTextInput("load_header") {
X = 320;
Y = 250;
Width = 185;
Height = 120;
WordWrap = TRUE;
InputDisabled = TRUE;
InputText = Mangle(321/*"Loading"*/);
FontID = "font/verdana_white_bold_18.tf";
},
GuiTextInput("load_status") {
X = 350;
Y = 280;
Width = 185;
Height = 120;
WordWrap = TRUE;
InputDisabled = TRUE;
FontID = "font/tab_w_on_g.tf";
}
};
}